<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
  <script>
    var obj = { name: "小黑", age: 3, skills: "无限空间" };
    // console.log(Object.entries(obj));
    // Object.entries(obj).forEach(function ([key, value]) {
    //   console.log([key, value]);
    //   console.log(key, value, typeof key, typeof value);
    // });
    console.log(Object.keys(obj));
    Object.keys(obj).forEach((keys) => console.log(keys, typeof keys));
  </script>
</html>
